package de.tabuma.shopping.view;

import de.tabuma.lib.*;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.util.logging.*;
import de.tabuma.shopping.*;

/**
 *
 * @author $Author: alefen $
 * @version $Revision: 1.2 $
 * @since $Date: 2009/07/21 19:37:33 $
 */
public class description extends tabumaview {

    private static Logger log =  Logger.getLogger(description.class.getName());

    String orderNav;
    public description(String servlet, Hashtable parameter, String orderNav) {
        super(servlet, parameter);
        this.orderNav = orderNav;
    }

    public void processRequest(ServletContext context, HttpServletRequest request, HttpServletResponse response, PrintWriter out)  {
        try {
            out.println("<div class=\"contentContent\">");
            out.println("<div class=\"OrderDescriptionImage\">");
            out.println("<img src=\"grafiken/order_description.png\" alt=\"Order Description\" border=\"0\"/>");
            out.println("</div>");
            out.println("<div class=\"OrderDescriptionHead\">"+constants.getValueFromProperties("orders.description.head")+"</div>");
            out.println("<div class=\"OrderDescriptionStepHead\">"+constants.getValueFromProperties("orders.description.step1.head")+"</div>");
            out.println("<div class=\"OrderDescriptionStepContent\">"+constants.getValueFromProperties("orders.description.step1.content")+"</div>");
            out.println("<div class=\"OrderDescriptionStepHead\">"+constants.getValueFromProperties("orders.description.step2.head")+"</div>");
            out.println("<div class=\"OrderDescriptionStepContent\">"+constants.getValueFromProperties("orders.description.step2.content")+"</div>");
            out.println("<div class=\"OrderDescriptionStepHead\">"+constants.getValueFromProperties("orders.description.step3.head")+"</div>");
            out.println("<div class=\"OrderDescriptionStepContent\">"+constants.getValueFromProperties("orders.description.step3.content")+"</div>");
            out.println(this.getFormBeginn(null));
            out.println(this.getHiddenAsAttribute());
            out.println("<input type=\"hidden\" name=\""+orderNav+"\" value=\""+constants.ORDERNAV_DESCRIPTION+"\"/>");
            out.println("<input type=\"submit\" value=\""+constants.getValueFromProperties("orders.description.button.start_step1")+"\" class=\"loginbutton\"/>");
            out.println(this.getFormEnd());
            out.println("</div>");
        }
        catch(Exception e) {
            log.warning(e.getMessage());
        }
    }
}
